Skip to content

Conversation

@jstorts
Copy link

@jstorts jstorts commented Jul 28, 2023

Ticket

Context

A user has requested the roles of project members be returned in the SDK response. This GQL query is already being made by the App. As discussed in the Slack thread, exposing the accessFrom field has a risk of introducing latency.

If possible, the updated query should be released for beta testing to further test the performance when used for programmatic access.

Slack Thread

Analysis

Datadog APM

The analysis shows that the queries made by both the App and the SDK are somewhat expensive because the resolver has to iterate several collections to compute the result.

The difference between query performance with the field (in the App) and query performance without the field (in the SDK today) was not large enough to be significant.

Description

If merged, this PR adds the accessFrom field to the ProjectMemberOverviewPyApi query. This field resolves to the role assigned to each member of a project within that project.

@jstorts jstorts requested a review from msokoloff1 July 28, 2023 18:40
@jstorts jstorts force-pushed the jstorts/add-roles-to-project-members branch from 5687c44 to dc44aa8 Compare July 28, 2023 19:24
@jstorts jstorts force-pushed the jstorts/add-roles-to-project-members branch 2 times, most recently from 0afaae8 to cc72ffe Compare July 28, 2023 20:08
@jstorts jstorts force-pushed the jstorts/add-roles-to-project-members branch from cc72ffe to a5cf49a Compare August 1, 2023 01:31
@paulnoirel paulnoirel requested a review from msokoloff1 August 1, 2023 10:38
@jstorts jstorts requested a review from kkim-labelbox August 1, 2023 14:02
@jstorts jstorts merged commit 888db37 into develop Aug 1, 2023
@jstorts jstorts deleted the jstorts/add-roles-to-project-members branch August 1, 2023 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants